package com.nuoniu.sibanyun.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * @ClassName ErpPeriodDto
 * @Description TODO
 * @Authpr baiqiang
 * @Date 2020/9/22 14:11
 **/
@Data
@ApiModel("会计期间DTO")
public class ErpPeriodDto extends BaseEntity {


    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "所在年度 ")
    @TableField("current_year")
    private Integer currentYear;

    @ApiModelProperty(value = "当前期间 ")
    @TableField("current_period")
    private Integer currentPeriod;

    @ApiModelProperty(value = "开始时间 ")
    @TableField("begin_date")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd" )
    private LocalDate beginDate;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_date")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd" )
    private LocalDate endDate;
}
